package com.xqboss.apps.vo.game.materialStrike;

import cn.hutool.core.lang.Assert;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@ApiModel("材料冲击游戏后台配置")
public class GameMaterialStrikeConfigAdminJson implements Serializable {

    @ApiModelProperty("中奖播报门槛")
    private BigDecimal barrageShowLimit;

    public void verify() {
        Assert.isTrue(barrageShowLimit != null && barrageShowLimit.compareTo(BigDecimal.ZERO) > 0,
                "中奖播报门槛不能为空且必须大于0");
    }
}